package com.hzjh.h5mall.bean

enum class AdStatus{
    UNACCEPT,
    ACCEPT,
    CANCEL,
    COMPLETE
}

enum class UpFileTypes{
    ADVERTISEMENT,
    SCREENSHOT,
    OTHER
}

//广告订单主状态，state 状态，-1自定义的状态 0进行中，10待审核，20已审核，25待打款，30财务打款完成，99拒绝,98超时,97取消
enum class AdOrderStatus{
    UNACCEPT{
        override val value:Int = -1
        override val title:String = "未接单"
    },
    ACCEPT{
        override val value:Int = 0
        override val title:String = "已接单 进行中"
    },
    WAITING{
        override val value:Int = 10
        override val title:String = "已接单 待审核"
    },
    REVIEWED{
        override val value:Int = 20
        override val title:String = "已审核"
    },
    PENDING_PAY{
        override val value:Int = 25
        override val title:String = "待打款"
    },
    COMPLETE{
        override val value:Int = 30
        override val title:String = "已打款"
    },
    CANCEL{
        override val value:Int = 97
        override val title:String = "已取消"
    },
    TIMEOUT{
        override val value:Int = 98
        override val title:String = "已超时"
    },
    REJECT{
        override val value:Int = 99
        override val title:String = "已拒绝"
    };

    abstract val value:Int
    abstract val title:String
}
//广告订单子任务状态 0待审核，1通过，2驳回，99拒绝
enum class AdOrderSubStatus{
    WAITING{
        override val value:Int = 0
        override val title:String = "待审核"
    },
    APPROVED{
        override val value:Int = 1
        override val title:String = "通过"
    },
    NOT_APPROVED{
        override val value:Int = 2
        override val title:String = "驳回"
    },
    REJECT{
        override val value:Int = 99
        override val title:String = "拒绝"
    };
    abstract val value:Int
    abstract val title:String
}

//钱包进度状态 0完成 1进行中 2未开始 3失败
enum class WalletProcessStatus{
    COMPLETE{
        override val value:Int = 0
        override val title:String = "已完成"
    },
    PROCESSING{
        override val value:Int = 1
        override val title:String = "进行中"
    },
    NOT_START{
        override val value:Int = 2
        override val title:String = "未开始"
    },
    FAIL{
        override val value:Int = 3
        override val title:String = "失败"
    };
    abstract val value:Int
    abstract val title:String
}